const initial = {
  record: [],
  chatsum:0
}
const chat = function (state = initial, action) {
  switch (action.type) {
    case "CHAT": {
      console.log("action更变状态", action, state);
      return {
        ...state,
        ...action.state,
      }
    } 
    case "CHATLIST": {
      console.log("CHATLISTAction更变状态", action, state);
      return {
        ...state,
        ...action.state,
      }
    }
    case "CHATSUM": {
      console.log("CHATSUMAction更变状态", action, state);
      return {
        ...state,
        ...action.state,
      }
    }
    default:
      return state
  }
}
export default chat;